<?php
	$base_info = "基本资料";
	$office_info = "办公场地";
	$business_info = "主营业务";
	$expenses_info = "支出估计";
	$notice_info = "提醒注意事项";
	$files_info = "文件上传";
	$check_message = "审核意见";
?>
[
	{"name":"报告人","value":"<?php echo $result['author']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"报告时间","value":"<?php echo $result['edttime']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"商户名称","value":"<?php echo $$result['merchant_name']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"商户地址","value":"<?php echo $result['merchant_address']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"商户简称","value":"<?php echo $result['merchant_abbreviation']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"成立时间","value":"<?php echo $result['regtime']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"商户利率","value":"<?php echo $result['interest_rate']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"服务分类","value":"<?php echo $result['service_type']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"法人","value":"<?php echo $result['corporates']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"法人电话","value":"<?php echo $result['corporate_phone']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"法人邮箱","value":"<?php echo $result['corporate_email']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"负责人","value":"<?php echo $result['principal']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"负责人电话","value":"<?php echo $result['principal_phone']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"负责人邮箱","value":"<?php echo $result['principal_email']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"首付","value":"<?php echo $result['down_payment']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"保障金","value":"<?php echo $result['cash_deposit']; ?>","group":"<?php echo $base_info; ?>"},
	{"name":"POS机编码","value":"<?php echo $result['pos_number']; ?>","group":"<?php echo $base_info; ?>"},

	{"name":"场地面积","value":"<?php echo $result['floor_space']; ?>","group":"<?php echo $office_info; ?>"},
	{"name":"办公环境","value":"<?php echo $result['office_environment']; ?>","group":"<?php echo $office_info; ?>"},
	{"name":"使用年限","value":"<?php echo $result['durable_years']; ?>","group":"<?php echo $office_info; ?>"},
	{"name":"周边环境","value":"<?php echo $result['surrounding']; ?>","group":"<?php echo $office_info; ?>"},
	{"name":"场地产权","value":"<?php echo $result['site_property']; ?>","group":"<?php echo $office_info; ?>"},
	{"name":"营业执照","value":"<?php echo $result['business_license']; ?>","group":"<?php echo $office_info; ?>"},

	{"name":"主营项目","value":"<?php echo $result['main_project']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"月营业额","value":"<?php echo $result['average_monthly_turnover']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"从业年限","value":"<?php echo $result['age_limit']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"淡旺季","value":"<?php echo $result['seasonality']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"课程价格","value":"<?php echo $result['price']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"课程周期","value":"<?php echo $result['period']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"学生现有人数","value":"<?php echo $result['student_number']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"最多接纳人数","value":"<?php echo $result['max_galleryful']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"培训后工作分配","value":"<?php echo $result['assigning_job']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"行业口碑","value":"<?php echo $result['reputation']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"员工人数","value":"<?php echo $result['staff_number']; ?>","group":"<?php echo $business_info; ?>"},
	{"name":"工作状态","value":"<?php echo $result['work_state']; ?>","group":"<?php echo $business_info; ?>"},

	{"name":"员工工资","value":"<?php echo $result['staff_wages']; ?>","group":"<?php echo $expenses_info; ?>"},
	{"name":"租金水电","value":"<?php echo $result['utility_bills']; ?>","group":"<?php echo $expenses_info; ?>"},
	{"name":"负债","value":"<?php echo $result['liabilities']; ?>","group":"<?php echo $expenses_info; ?>"},
	{"name":"其他","value":"<?php echo $result['rests_cost']; ?>","group":"<?php echo $expenses_info; ?>"},

	{"name":"商户简介","value":"<?php echo $result['shops']; ?>","group":"<?php echo $notice_info; ?>"},
	{"name":"商户提交资料","value":"营业执照,租赁合同,租金收据,征信报告,银行流水,合同资料","group":"<?php echo $notice_info; ?>"},
	{"name":"其他注意事项","value":"1,一段时期内，一个商户学员申请激增或者申请人与行业年龄阶层不符，注意骗贷行为。2,商户照片。","group":"<?php echo $notice_info; ?>"}

	<?php
		if ($array_files) 
		{
			foreach ($array_files as $key => $value) 
			{
				$see = "<a href='http://".$_SERVER['HTTP_HOST']."/tp_bypal/Public/upload/visitlog/".$value['file_address']."' target='_blank'>查看</a>";
				echo ',{"name":"文件'.($key+1).'","value":"'.$value['file_address'].'&nbsp;&nbsp;&nbsp;&nbsp;'.$see.'&nbsp;&nbsp;&nbsp;&nbsp;","group":"'.$files_info.'"}';
			}
		}

		if ($result['remark']) 
		{
			echo ',{"name":"审核意见","value":"'.$result['remark'].'","group":"'.$check_message.'"}';
		}
	?>
]